package com.kaili.basic.pojo.dto;

import com.baomidou.mybatisplus.annotations.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * <p>
 * 参数控制实体类
 * </p>
 *
 * @author nigang
 * @since 2018-06-28
 */
@TableName("base_parameter_control")
@ApiModel(description = "参数控制表")
@Data
public class BaseParameterControlAddDto implements Serializable {

    @ApiModelProperty("参数id")
    private String parameterId;

    @ApiModelProperty("代收货款手续费")
    @NotNull(message = "代收货款手续费不能为空")
    private Double collectionCharge;

    @ApiModelProperty("保费比例(正常品)")
    @NotNull(message = "保费比例(正常品)不能为空")
    private Double normalGoodsPremiumRate;

    @ApiModelProperty("保费比例(易碎品)")
    @NotNull(message = "保费比例(易碎品)不能为空")
    private Double fragilePremiumRate;

    @ApiModelProperty("使用网点")
    @NotNull(message = "使用网点不能为空")
    private Long useSiteId;

    @ApiModelProperty("使用用户")
    @NotNull(message = "使用用户不能为空")
    private Long useUserId;
}
